package com.aqie.easy.string;

/**
 * 1108 IP 地址无效化
 */
public class DefangIPaddr {
    public String defangIPaddr(String address) {
        // return address.replaceAll("\\.","[.]");
       return address.replace(".","[.]");
    }

    public static void main(String[] args) {
        String address = "255.100.50.0";
        System.out.println(new DefangIPaddr().defangIPaddr(address));
    }
}
